package po;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer id;
	private String email;
	private String password;
	private String sex;
	private String birthy;
	private String birthm;
	private String birthd;
	private String phone;
	private String question;
	private String answer;
	private Set addresses = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}
	
	public User(Integer id){
		this.id = id;
	}
	/** full constructor */
	public User(String email, String password, String sex, String birthy,
			String birthm, String birthd, String phone, String question,
			String answer, Set addresses) {
		this.email = email;
		this.password = password;
		this.sex = sex;
		this.birthy = birthy;
		this.birthm = birthm;
		this.birthd = birthd;
		this.phone = phone;
		this.question = question;
		this.answer = answer;
		this.addresses = addresses;
	}
	public User(String email, String password, String sex, String birthy,
			String birthm, String birthd, String phone, String question,
			String answer) {
		this.email = email;
		this.password = password;
		this.sex = sex;
		this.birthy = birthy;
		this.birthm = birthm;
		this.birthd = birthd;
		this.phone = phone;
		this.question = question;
		this.answer = answer;
	
	}
	public User(String email, String password) {
		this.email = email;
		this.password = password;
			}
	public User(String email) {
		this.email = email;
	
			}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirthy() {
		return this.birthy;
	}

	public void setBirthy(String birthy) {
		this.birthy = birthy;
	}

	public String getBirthm() {
		return this.birthm;
	}

	public void setBirthm(String birthm) {
		this.birthm = birthm;
	}

	public String getBirthd() {
		return this.birthd;
	}

	public void setBirthd(String birthd) {
		this.birthd = birthd;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Set getAddresses() {
		return this.addresses;
	}

	public void setAddresses(Set addresses) {
		this.addresses = addresses;
	}

}